package com.guoyh.bilbase.pop.pop

import android.content.Context
import androidx.core.view.isVisible
import com.guoyh.bilbase.R
import com.guoyh.bilbase.databinding.LayoutLoadingViewBinding

class LoadingPop(context: Context,val msg :String? = "请稍后...") : BaseCenterPop<LayoutLoadingViewBinding>(context){

    override fun getImplLayout() = R.layout.loading_layout

    override fun onViewCreate() {
        mDataBind.loadingTips.isVisible = !msg.isNullOrEmpty()
        mDataBind.loadingTips.text = msg
    }


    fun setTitle(msg:String){
        mDataBind.loadingTips.text = msg
    }

}